import Cookies from 'js-cookie'

const TokenKey = 'h5-vue-cli_token'
//Token定义touken的方法
export function getToken () {
  console.log('从Cookies获取token')
  return Cookies.get(TokenKey);
  // return 666;
}

export function setToken (token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}
